package com.egu.web.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.egu.service.ReportService;

@Controller
@RequestMapping("report")
public class ReportController {

	@Autowired
	private ReportService reportService;
	@RequestMapping("listUI")
	public String listUI(Model model) {
		Map<String,Object> map=reportService.getReportData();
		model.addAttribute("typeReportList", map.get("typeReportList"));
		model.addAttribute("sourceReportList", map.get("sourceReportList"));
		model.addAttribute("conditionRportList", map.get("conditionRportList"));
		model.addAttribute("distrReportList", map.get("distrReportList"));
		return "report/listUI";
	}

}
